﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using Models;

namespace DataAccess
{
    public class DB : DbContext 
    {
        public DbSet<Restaurent> Restaurents { get; set; }

        public DbSet<Location> Locations { get; set; }

        public DbSet<Review> Reviews { get; set; }


        
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}
